//实现一个简单的控制台版用户登陆程序,
//程序启动提示用户输入用户名密码.
//如果用户名密码出错, 使用自定义异常的方式来处理
public class User {
    private String name;
    private String password;
    
    public String getName() {
        return name;
    }
    
    public void setName(String name) {
        this.name = name;
    }
    
    public String getPassword() {
        return password;
    }
    
    public void setPassword(String password) {
        this.password = password;
    }
    
    public User(String name, String password) {
        this.name = name;
        this.password = password;
    }
    
}
